package com.lzw.DailyAudit.service.dateAggregation_02.DailyAudit.mapper;


import com.hooya.fa.eu.biz.DailyAudit.entity.dto.InvoiceDataDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * MetaProduct Mapper接口
 */
@Mapper
public interface DailyMetaProductMapper {
    
    /**
     * 将所有needFlag为1的记录设置为0
     */
    @Update("UPDATE fa_eu.meta_product SET needFlag = 0 WHERE needFlag = 1")
    int resetNeedFlagToZero();
    
    /**
     * 批量更新指定SKU的needFlag为1
     */
    int batchUpdateNeedFlagToOne(@Param("skuList") List<String> skuList);

    List<InvoiceDataDTO> getDescription();

    List<InvoiceDataDTO> getWeight();

}